//
//  FTChildPaneCell.m
//  WebPDA
//
//  Created by Justin Yip on 9/1/10.
//  Copyright 2010 TenNights.com. All rights reserved.
//

#import "FTChildPaneCell.h"


@implementation FTChildPaneCell
@synthesize childFormTable;

#pragma mark -
#pragma mark Callback

- (void) didSelected:(UINavigationController *)navigationController {
	if (nil == navigationController) {
		NSLog(@"Warning, you must provide a navigationController");
	}
	NSString *fileName = [super.preferenceSpecifier objectForKey:@"File"];NSLog(@"%@",fileName);
	childFormTable = [[FTFormTableViewController alloc] init];
	childFormTable.navigationController = navigationController;
	[childFormTable loadFile:fileName inBundle:formBundle];
	[navigationController pushViewController:childFormTable animated:YES];
}

#pragma mark -
#pragma mark Memory management

- (void)dealloc {
	[childFormTable release];
    [super dealloc];
}

@end
